import * as types from './mutation-types'

// initial state
// shape: [{ id, quantity }]
const state = {
    count: 0
}

// getters
const getters = {
    yearCount: state => state.count

}

// actions
const actions = {
}

// mutations
const mutations = {
    [types.INC_TO_YEAR] (state) {
        state.count++;
    },

    [types.DEC_TO_YEAR] (state) {
        state.count--;
    }
}

export default {
    state,
    getters,
    actions,
    mutations
}